/**
 * @author mili
 */

/**
 * Constant for access different kind of json files
 * */ 

var base_url = "http://localhost/~mingxuanli/syd-traffic/";
var server_url = base_url + "server_program/server.php";
var incident_url = base_url + "traffic-data/Incidents/";
var f3_url = base_url + "traffic-data/F3/";
var m4_url = base_url + "traffic-data/M4/";
var m7_url = base_url + "traffic-data/M7/";
var resource_url = "../resources/";
var left_url = resource_url+"direction_left.ico";
var right_url = resource_url+"direction_right.ico";
var up_url = resource_url+"direction_up.ico";
var down_url = resource_url+"direction_down.ico";

// Category 1 
var CONS_INCIDENT = 1;
var CONS_ROADWORK = 2;
var CONS_MAJOREVENT = 3;
var CONS_ALPINE = 4;
var CONS_FIRE = 5;
var CONS_FLOOD = 6;

// Category 2
var CONS_F3 = 7;
var CONS_M4 = 8;
var CONS_M7 = 9;

// Category 3
var CONS_HVCS = 10;
var CONS_STC = 11;
var CONS_REST_AREA = 12;

// Category 4
var CONS_TRAFFIC_CAM = 13;